# !macro customInstall
#  DetailPrint "Register pkuofflineapp URI Handler"
#  DeleteRegKey HKCR "pkuofflineapp"
#  WriteRegStr HKCR pkuofflineappe" "" "URL:pkuofflineapp"
#  WriteRegStr HKCR "pkuofflineappe" "URL Protocol" ""
#  WriteRegStr HKCR "pkuofflineapp\shell" "" ""
#  WriteRegStr HKCR "pkuofflineapp\shell\Open" "" ""
#  WriteRegStr HKCR "pkuofflineapp\shell\Open\command" "" "$INSTDIR\${APP_EXECUTABLE_FILENAME} %1"
# !macroend

!macro customInstall
  DetailPrint "Register pkuofflineapp URI Handler"
  DeleteRegKey HKCR "pkuofflineapp"
  WriteRegStr HKCR "pkuofflineapp" "" "URL:pkuofflineapp"
  WriteRegStr HKCR "pkuofflineapp" "URL Protocol" ""
  WriteRegStr HKCR "pkuofflineapp\DefaultIcon" "" "$INSTDIR\${APP_EXECUTABLE_FILENAME}"
  WriteRegStr HKCR "pkuofflineapp\shell" "" ""
  WriteRegStr HKCR "pkuofflineapp\shell\Open" "" ""
  WriteRegStr HKCR "pkuofflineapp\shell\Open\command" "" "$INSTDIR\${APP_EXECUTABLE_FILENAME} %1"
!macroend